<template>
  <div class="child">
    <div class="header">
      <slot name="header">默认标题</slot>
    </div>
    <div class="content">
      <slot name="content">默认内容</slot>
    </div>
    <div class="footer">
      <slot name="footer">默认底部内容</slot>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ChildComponent'
};
</script>

<style scoped>
.child {
  border: 1px solid #ccc;
  padding: 10px;
  margin: 10px 0;
}
.header, .content, .footer {
  margin: 5px 0;
}
</style>
